trust Studio names, don't validate locally#1218
Closed
shcheklein wants to merge 1 commit intomainfrom
Closed
Conversation
Contributor
Reviewer's GuideWhen pulling datasets from Studio, this change stops local validation of namespace and project names by passing Sequence diagram for dataset pull with Studio names (no local validation)sequenceDiagram
participant User as actor User
participant Catalog
participant Metastore
User->>Catalog: read_dataset(ds_uri with @)
Catalog->>Metastore: create_namespace(name, ..., validate=False)
Metastore-->>Catalog: Namespace created (no validation)
Catalog->>Metastore: create_project(namespace, name, ..., validate=False)
Metastore-->>Catalog: Project created (no validation)
Catalog-->>User: Dataset ready
Class diagram for updated metastore creation callsclassDiagram
class Metastore {
+create_namespace(name, description, uuid, validate=True)
+create_project(namespace_name, project_name, description, uuid, validate=True)
}
class Catalog {
+pull_dataset(...)
}
Catalog --> Metastore : uses
Metastore : +create_namespace(..., validate=False)
Metastore : +create_project(..., validate=False)
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Hey @shcheklein - I've reviewed your changes and they look great!
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes issues with pulling Studio datasets:
Triggering:
TODO
Summary by Sourcery
Skip local namespace and project name validation when pulling remote Studio datasets to allow reserved characters in names
Bug Fixes: